import requests
import json


def main():
        
    url = "https://qianfan.baidubce.com/v2/app/conversation/runs"
    
    payload = json.dumps({
        "app_id": "ef166ccd-32af-4f0e-8599-65814117fadd",
        "query": "你好",
        "stream": False,
        "conversation_id": "0aab402a-f74e-4e0d-9cc0-3d26c0fe4251"
    })
    headers = {
        'Content-Type': 'application/json',
        'X-Appbuilder-Authorization': 'Bearer bce-v3/ALTAK-7FnGWq7X8y5yqc9UeI2LG/2da4866b39c789172976c2eeb5901bb36273b965'
    }
    
    response = requests.request("POST", url, headers=headers, data=payload)
    
    print(response.text)
    

if __name__ == '__main__':
    main()
